<? /*
$temp_file = 'model/table/template/include/table_temp.php';
require('include/set_template.php');
*/

$tableid_set = remove($_GET['page'],'/');

if($_GET['exporttable']) {
	require_once('model/table/template/include/table_temp_v2_print.php');
}else{


?>

					<div class="col-md-12">
						<!-- BEGIN EXAMPLE TABLE PORTLET-->
						<div class="portlet light bordered">
							<div class="portlet-title">
								<div class="caption">
								<span class="caption-subject bold uppercase"><? echo page_title() ; ?></span>
									<i class="fa fa-globe"></i>
								</div>
                                
                                    <div class="tools"> </div>
                                    
                         
                                        
<? if($GLOBALS['tblsearch']) { ?>

<div class="actions">

<!--▼▼▼▼-->
<? 

$tblsearch = $GLOBALS['tblsearch'];
if($tblsearch) foreach( $tblsearch as $tblsearch_k => $tblsearch_v){
	require_once($tblsearch_v);
}
 ?>
<!--▲-->                                        
                                        
                                    </div>

<? } ?>                                    
                                    
                                    
							</div>
                            
                            
							<div class="portlet-body">
								<div class="table-toolbar">
									<div class="row">
										<div class="col-md-6">
                                        <? 
										
										
										if($GLOBALS['table_model']['add_btn']){ ?>
											<div class="btn-group">
												<button id="sample_editable_1_new" class="btn green" onClick="window.location.href='<? echo PAGE_PATH.$GLOBALS['table_model']['add_btn'] ; ?>'">
												<? echo lang('Add New'); ?> </button>
                                                <i class="fa fa-plus"></i>
											</div>
                                         <? } ?>
                                         <? if($GLOBALS['table_model']['more_btn']) {
											 $addbut = s2a($GLOBALS['table_model']['more_btn']);
											 $addlink = s2a($GLOBALS['table_model']['more_btn_link']);
											 foreach( $addbut as $key => $value){
												 ?>
                                                 	<div class="btn-group">
												<button id="sample_editable_1_new" class="btn green" onClick="window.location.href='<? echo $addlink[$key] ; ?>'">
												<? echo $value; ?> 
                                                <? echo ($value=='Add') ? '<i class="fa fa-plus">':'';
												?></i>
                                                </button>
											</div>
                                                 <?
											 }
										 }?>
                                         <div class="btn-group">
												<a id="" class="btn green" href="<? echo url_update('','exporttable','1') ; ?>" target="_blank">
												Export
                                                <i class="fa fa-file-o"></i>
                                                </a>
											</div>
                                    <div class="tools"> </div>
                                         
										</div>
               


										<!--Ã¢ï¿½Â¼Ã¢ï¿½Â¼<div class="col-md-6">
											<div class="btn-group pull-right">
												<button class="btn dropdown-toggle" data-toggle="dropdown">Tools <i class="fa fa-angle-down"></i>
												</button>
												<ul class="dropdown-menu pull-right">
													<li>
														<a href="#">
														Print </a>
													</li>
													<li>
														<a href="#">
														Save as PDF </a>
													</li>
													<li>
														<a href="#">
														Export to Excel </a>
													</li>
												</ul>
											</div>
										</div>Ã¢ï¿½Â¼Ã¢ï¿½Â¼-->
									</div>
								</div>
                                <div class="portlet-body">
                                    <div class="table-responsive">
                                    
                                    <? 
									if($GLOBALS['text_b4_tbl']) {
										echo $GLOBALS['text_b4_tbl'];
									}?>
								    <? require_once('model/table/template/include/table_temp_v2.php'); ?>
								    </div>
								</div>
								
             <? 
			 if($GLOBALS[$GLOBALS['pagerlistname'].'_pager']){
			 	$GLOBALS['pager'] = $GLOBALS[$GLOBALS['pagerlistname'].'_pager'];
			 }
			 
			 require(MW_ADMIN_TEMP_PATH.'include/pager_v2.php'); ?>
							</div>
						</div>
						
						
						<!-- END EXAMPLE TABLE PORTLET-->
					</div>
<? } ?>    





<!--▼▼▼▼-->
<!--▼▼<div class="portlet-body">
                                    <div class="dd" id="nestable_list_3">
                                        <ol class="dd-list">
                                            <li class="dd-item dd3-item" data-id="13">
                                                <div class="dd-handle dd3-handle"> </div>
                                                <div class="dd3-content"> Item 13 </div>
                                            </li>
                                            <li class="dd-item dd3-item" data-id="14">
                                                <div class="dd-handle dd3-handle"> </div>
                                                <div class="dd3-content"> Item 14 </div>
                                            </li>
                                            <li class="dd-item dd3-item" data-id="15">
                                                <div class="dd-handle dd3-handle"> </div>
                                                <div class="dd3-content"> Item 15 </div>
                                                <ol class="dd-list">
                                                    <li class="dd-item dd3-item" data-id="16">
                                                        <div class="dd-handle dd3-handle"> </div>
                                                        <div class="dd3-content"> Item 16 </div>
                                                    </li>
                                                    <li class="dd-item dd3-item" data-id="17">
                                                        <div class="dd-handle dd3-handle"> </div>
                                                        <div class="dd3-content"> Item 17 </div>
                                                    </li>
                                                    <li class="dd-item dd3-item" data-id="18">
                                                        <div class="dd-handle dd3-handle"> </div>
                                                        <div class="dd3-content"> Item 18 </div>
                                                    </li>
                                                </ol>
                                            </li>
                                        </ol>
                                    </div>
                                </div>
▼▼-->







        <link href="assets/global/plugins/jquery-nestable/jquery.nestable.css" rel="stylesheet" type="text/css" />
    
    